#{extends 'master.html' /}
<div class="page-block">
    <div><a href="@{User.editForm(info.user.id)}">&{'User.display.editLink'}</a></div>
    <div class="user-details">
        <label for="userName">&{'Mails.confirmOrderForAdmin.userName'}</label>

        <div id="userName">${info.user.name}</div>
        <label for="phoneNumber">&{'Mails.confirmOrderForAdmin.phoneNumber'}</label>

        <div id="phoneNumber">${info.user.phoneNumber}</div>
        <label for="address">&{'Mails.confirmOrderForAdmin.address'}</label>

        <div id="address">${info.user.address}</div>
    </div>
    <table class="shopping-items">
        <thead>
        <tr>
            <th class="delete-header"></th>
            <th>&{'OrderAdmin.list.header.date'}</th>
            <th>&{'OrderAdmin.list.header.number'}</th>

        </tr>
        </thead>
        #{list items:info.orders, as:'order'}
        <tr>
            <td class="delete-column"><a class="delete-item" title="&{'Order.list.removeitem'}"
                                         href="@{Order.deleteConfirmation(order.id)}">&nbsp;</a>
            </td>
            <td>
                ${order.placeDate.format('dd/MM/yyyy hh:mm:ss')}
            </td>
            <td>
                <a href="@{Order.display(order.id)}"/>&{'OrderAdmin.list.row.order'} #${order.id}</a>
            </td>

        </tr>
        #{/list}
    </table>
</div>